package com.zys.el.time.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 帖子点赞
 * @TableName thinking_like
 */
@NoArgsConstructor
@TableName(value ="thinking_like")
@Data
public class ThinkingLike implements Serializable {

    public ThinkingLike(Long thinkingId, Long userId, Integer status) {
        this.thinkingId = thinkingId;
        this.userId = userId;
        this.status = status;
    }

    public ThinkingLike(Long thinkingId, Long userId) {
        this.thinkingId = thinkingId;
        this.userId = userId;
    }

    /**
     * 帖子id
     */
    private Long thinkingId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 点赞状态
     * 0-未点赞，1-已点赞
     */
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}